Fix where "!" operator used in Bitwise operation.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 Aug 2005 16:23:54 +0000 (16:23 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 Aug 2005 16:23:54 +0000 (16:23 +0000)
In IBM we have an internal source code scanner called BEAM. We have run
it against Xen and here are some of the results.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
xen/tools/symbols.c

index 7bc141e2108f73d3b3ca76f76a5379c498ad70d0..3eca4cae1bce737278665a1eb75e41a23cd152ae 100644 (file)
@@ -311,7 +311,7 @@ write_src(void)
        off = 0;
        for (i = 0; i < cnt; i++) {
 
-               if (!table[i].flags & SYM_FLAG_VALID)
+               if (!(table[i].flags & SYM_FLAG_VALID))
                        continue;
 
                if ((valid & 0xFF) == 0)